package cn.ncu.wechat.service;

import cn.ncu.wechat.model.Orders;
import cn.ncu.wechat.model.WechatPay;
import org.springframework.http.ResponseEntity;

import java.math.BigDecimal;
import java.util.Map;

public interface WeChatPayService {
    //ResponseEntity<String> sendWeChatPayRequest(Orders order);

    Map<String, String> createMiniProgramPayment(String openId, Orders order, String body) throws Exception;
    Map<String, String> parseWeChatPayResponse(String xmlResponse) throws Exception;
    Map<String, String> refund(Orders order) throws Exception;
}
